-- GENERATED SPELL FOR [Scalder] --


function spell0_25226(pUnit, Event) --@Scalding Blast,n/a--
pUnit:FullCastSpellOnTarget(50257,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25226', 584, 1)
end

function spell1_25226(pUnit, Event) --@Water Bolt,n/a--
pUnit:FullCastSpellOnTarget(32011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25226', 2500, 1)
end

function Sorts_25226(pUnit, Event)
local choix_sorts_25226 = math.random(0, 1)
if choix_sorts_25226 == 0 then
pUnit:RegisterEvent('spell0_25226', 1, 1)
end
if choix_sorts_25226 == 1 then
pUnit:RegisterEvent('spell1_25226', 1, 1)
end
end

function mob25226_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25226', math.random(1500, 3000), 1)
end

function mob25226_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25226_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25226_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25226, 1, 'mob25226_Action')
RegisterUnitEvent(25226, 2, 'mob25226_Leave')
RegisterUnitEvent(25226, 3, 'mob25226_Kill')
RegisterUnitEvent(25226, 4, 'mob25226_Die')
